<head>
<script type="text/javascript">
	var oFCKeditor = "\0";
</script>
</head>
<body>
<h3> <?= $this->content_type ?> </h3>
<!-- form action="/en/comment/index/bulk" method="POST"--> 
<form id ="bulk-form" action="/en/comment/ajax/bulk-comment" method="POST">
<table border = '1' width='100%' id = "show-table">
	<tr align ="center">
		<td>		   		</td>
		<td> <?=t(615) ?>	</td>
		<td> <?=t(602) ?>	</td>
		<td> <?=t(616) ?>	</td>
	</tr>
	
    	
	
	<? foreach ($this->commentList as $row) :?>
	<tr id="comment-row-<?=$row['id']?>">
		<td width = "20" align="center" valign = "top">
			<input type="checkbox" value="<?=$row['id'] ?>" class="commentIdClass" name="comment_ids[<?=$row['id'] ?>]"/>
		</td>
		<td > #<?=$row['id']?>  	</td>
		
		<td> 
			<?=t(617) ?>:<?= date('Y/m/d \a\t G:i A', $row['created']);?><br/>
			<div id = "comment-text-<?=$row['id']?>"><?=$row['comment_text'] ?></div>
			<div style= "display:none" id = "parent-content-type-<?=$row['id']?>"><?=$row['content_type'] ?></div>
			<div style= "display:none" id = "parent-content-id-<?=$row['id']?>"><?=$row['content_id']?></div>
			<div style= "display:none" id = "comment-title-<?=$row['id']?>"><?=$row['title']?></div>
			<div style="height:30px;width:500px; padding: 2px 0 0;">
    			<div align = "center" class = "action-comment" style="display:none">
    				<a href="javascript:void()" id = "spam-comment-<?=$row['id'] ?>"><?=t(116) ?>/a> |
    				<a href="javascript:void()" id = "delete-comment-<?=$row['id'] ?>"><?=t(31) ?></a> |
    				<a href="/en/comment/index/edit?id=<?=$row['id']?>" ><?=t(38) ?></a> |
    				<a href="javascript:void()" id = "quick-edit-comment-<?=$row['id'] ?>"><?=t(618) ?></a> |
    				<a href="javascript:void()" id = "reply-comment-<?=$row['id'] ?>"><?=t(619) ?></a>
    			</div>
    		</div>
		</td>
		<td width="15%">
			<?=t(13) ?> <?=t(79) ?>: <?=$row['name'];?><br/>
			<?=t(81) ?>:<?=Zend_Registry::get('configuration')->languagename->{$row['language']} ?>	<br/>
			<?=t(79) ?>:<?=$row['content_type'] ?><br/>
			<?=t(2) ?>:<div id= "comment-status-<?=$row['id'] ?>"><?=$row['status'] ?><br/>
		</td>
	</tr>
	<?endforeach ?>
</table>

<br />
<div style="width:100%;float: right" id = "paging">
<?= $this->paginationControl($this->paginator, 'Sliding', 'en/index/admin_pagination_control.phtml'); ?>
</div>
<div  style="background-color:#EEEEEE">
<?=t(30) ?>: 
<select name='bulkaction' id ="bulk" >
<?if(true): //TODO: isadmin()?>
<option value='delete'> <?=t(31) ?> </option>
<?endif ?>
<option value='status'> <?=t(32) ?> </option>
</select>

<select name='changestatus' id ="changeStatus" style=" display:none">
<option value='featured'> <?=t(33) ?> </option>
<option value='published'> <?=t(34) ?> </option>
<option value='queued'> <?=t(35) ?> </option>
<option value='unpublished'> <?=t(36) ?> </option>
<option value='deleted'> <?=t(37) ?> </option>
</select>
<input type="submit" value="Apply" id="bulk-submit" name="op"/>
</div>
</form>

<table id ="edit-table">
    <tr id = "box-wrapper" style="display:none">
    <td colspan="4">
        <div id="new-edit-box" style="margin-left:30px">
            <form id="new-edit-form" accept-charset="UTF-8"
                action="<?=$this->escape($this->formComment->getAction()) ?>"
            	method="<?= $this->escape($this->formComment->getMethod()) ?>">
                <?=t(13) ?>:<?=$this->formComment->title?>
                <div id="comment_text_wrapper">
            	</div>
            	<?if(true): //isAdmin():TODO?>
            		<div id ="check-captcha" style ="display:none">
            			<?=$this->formComment->captcha_newcomment; ?>
            			<a href="javascript:void()" class="redraw"> <?=t(22) ?> </a>
            		</div>
            	<?endif ?>
            	<div>
            		<input type="button" align = "left" value="Cancel" id="cancel" />
            		<?=$this->formComment->submit; ?>
                </div>
        	</form>
        </div>
    </td>
    </tr>
</table>

</body>